package com.sanen.flyer.entity.blast;

import com.sanen.flyer.common.Animation;

import java.awt.image.BufferedImage;

/**
 * @author wsse
 * @date 2018-09-21 10:12
 */
public class bulletBlast extends Blast{
    public bulletBlast(BufferedImage img, int x, int y) {
        this.image = img;
        this.width=img.getWidth()/4;
        this.height=img.getHeight();
        anim=new Animation(this,image,4,300,1);
        init(x,y);

    }
    public void init( int x, int y){
        this.x = x-width/2;
        this.y = y;
        this.isRemove=false;
        anim.setPlayCount(1);
    }
}
